package com.fxc;

import javax.swing.JFrame;

public class Main {

	public static void main(String[] args) {
		
		TankFrame frame = new TankFrame();
		
		int initTankCount = Integer.parseInt((String)PropertyManager.get("initTankCount"));
		
		// 初始化敌方坦克
		for (int i = 1; i < initTankCount; i++) {
			frame.tanks.add(new Tank(50 + i * 80, 200, Dir.DOWN, frame, Group.BAD));
		}
		
		while (true) {
			try {
				Thread.sleep(50);
				frame.repaint();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}  
		
		
		
	}

}	
